package com.cn.main.exception;

public class DataException extends RuntimeException {

	private static final long serialVersionUID = 4962818403500456770L;

	private String msg;
	
	public DataException() {
		super();
	}

	public DataException(String message, Throwable cause) {
		super(message, cause);
	}

	public DataException(String message) {
		super(message);
	}

	public DataException(Throwable cause) {
		super(cause);
	}

	@Override
	public String getMessage() {
		return msg == null ? super.getMessage() : msg;
	}

	public void setMessage(final String message) {
		msg = message;
	}
}
